setUsingNativeTitleBar wackiness

I just tracked a problem with an app appearing minimised in the task bar down to a call to setUsingNativeTitleBar() on my DialogWindow derived app. I’m guessing this doesn’t happen with the demo app, but I’m wondering if others have seen this behavior, or if it’s a known bug.

The window appears as expected when running under the debugger, but when running without the debugger, the window is minimised. Commenting out setUsingNativeTitleBar() fixes the problem.

Have you got the tip? I seem to remember fixing something like this recently.