Just thought I’d post this in case it saved some one else some hours.
I needed a small Plain Box window to appear on click. The window needed to disappear if the user clicked elsewhere so in the Window.Deactivate event, it closed itself.
The problem was under Windows, as soon as the window opened, it closed itself. (Works fine on Mac OS)