You can use the Arrange tab in the draw.io Format panel to change the order of overlapping shapes in draw.io. If your diagrams get more complex, use the layer feature instead.
Get your 30-day trial – draw.io is available on the Atlassian Marketplace (https://drawio.link/marketplace)
Or learn more about diagramming with draw.io at https://drawio-app.com/learning. You can also take a look at our blog (https://drawio-app.com/blog) to always stay up-to-date on new draw.io features in Confluence.