Fixed restoring window with docked state (win), closes #746