Moved window setup to after window creation, akin to resize.