Resize window based on 'focus'