Currently, if the app is closed on the Mac via the "Close Window" button, the entire app closes instead of just the window.
The following behavior would be desirable, which is standard in macOS: If the user clicks on the red button, the window closes and the dock icon disappears. However, the program remains in the macOS menu bar. It is still possible to interact with the program from here. If the window is opened again from here, the Dock icon reappears.