Rework StandaloneWindow class