Set foreground window on new window