switchToWindow function

Change focus to another window.