Create main window on the stack

Authored by cordlandwehr on Nov 2 2019, 5:17 PM.