Don't activate app unconditionally on window "Show".

Fixes issue where new window is opened using `gui.Window.open(...)` while app is in background.
Should also fix #1032.