private JDialog createDialog(RootNode root) {
		JDialog newWindow = null;
		if (root.isModal()) {
			newWindow = new JDialog(root.getModalDialog(), generateTitle());
		}
		else {
			newWindow = new JDialog(root.getFrame(), generateTitle());
		}

		newWindow.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
		GGlassPane glassPane = new GGlassPane();
		newWindow.setGlassPane(glassPane);
		glassPane.setVisible(true);
		return newWindow;
	}
Ensures the bounds of this window have a valid location and size
Ghidra/Framework/Docking/src/main/java/docking/DetachedWindowNode.java