You can use try this!
var dlg = new Window('window', 'Test');
You'll need to use #targetengine session (or some other non-default engine) for persistent scripts.
csm_phil, could you please use Java syntax highlighting (>>: Syntax Highlighting: Java) when you post scripts?
thanks all for the help