Studied it some more. Curiously I've no problem hiding the first window I create, and any that belong to it.
However any other window I create independant of the others is giving problems. More experimenting I think.
However any other window I create independant of the others is giving problems. More experimenting I think.