I think it would be really cool to have a message popup when closing the tab or window where a Web Map is being edited. A simple warning asking if you really want to close the tab would be enough. Same for other web-based Esri tools: Survey123, WAB, Dashboards, etc.