Handle popout window focus correctly