Focus the window when it's opened.

Not the best solution, but the only one I've found.