Set window hints before window creation.