The original issue on Qt 6.7 was caused by conflicts with the window state set in main.qml
which was addressed by afbc49e39aeae9fb1cb3dd2362d2dc04e76941ce.
The remaining issue with Qt 6.7 clobbering window state and position when hiding a window
looks like a legitimate Qt bug.
This reverts commit ebe270bec5820b956f4c511fd31097a0c1d1a7c3.