How to prevent window scene restoration

We have an iOS app running on macOS (not Mac Catalyst). The preferences are in a dedicated UIWindowScene. We don't want this scene to be restored, so when you start the app the preferences shouldn't be visible.

How can we prevent the UIWindowScene restoration?

Alternatively, if we can't prevent it, how can we ensure the main window scene is in front of the preferences window scene on app start?

How to prevent window scene restoration
 
 
Q