DRAFT: Create applyMainWindowState method
This separates the state data from the config one.
This needs more work, but because it creates another virtual method has to wait for KF6 branching.
Consequently it should be considered a proof of concept.