Creating a new Window in Lime and OpenFL

I’m trying to create a window in lime using:
Application.current.createWindow(new Window());
but the new window immediately closes

I’ve created an OpenFL project and tried to use the same code and the window somehow stays open, I’m confused as to why it works in OpenFL but not Lime alone

Are there any messages or errors?

Does it work if you use a tag in XML, rather than doing it at runtime?

<window id="1" width="800" height="600" />

No error messages or anything, the window would simply open, then immediately closes
The XML tag solution works, but I was wondering if it was possible to be able to create windows on runtime

It’s supposed to be possible, but it sounds like we need more testing to make sure this behaves the way we want