Set window position and parent