When Blender is started in fullscreen mode from the command line,
or if the fullscreen state is saved in the startup file, all temporary windows
will also open in fullscreen mode. When closing the fullscreen File Browser,
Blender would either crash or parent window becomes black.
This does not happen if the Blender switches to full screen manually.
NSWindowCollectionBehaviorFullScreenPrimary
should be set for windows that assume full-screen mode.
Related commit:
rB4b39de677d20: Fix T74101: File Browser in macOS fullscreen crashes or makes windows unusable