Dockable Dialog Boxes and the AOM
The methods to create and display a dockable dialog box are the same as those for a standard dialog box. For example:
var dialog = Application.createDialogFromFile('c:\temp\myxuifile');
dialog.dock = 0; // override the dock attribute in the XML file
dialog.show();