In a Document-based app, in SwiftUI (iOS 17), how to bring to front the window that shows an already open document, when trying to open the same document from the file browser, instead of opening a new window?
This is to prevent opening the document twice and being able to edit it in 2 different editors.
The official demo [1] does not handle this case.
[1] https://developer.apple.com/documentation/swiftui/building_a_document-based_app_with_swiftui