At least part of the problem involved creating a new window on startup, ignoring the existing one(s). This version does switch to the 'first' window. Then it throws an NPE when it tries to switch to the second
A little bit of nothing