public JRootPane getRootPane() {
		if (window instanceof JDialog) {
			return ((JDialog) window).getRootPane();
		}
		else if (window instanceof JFrame) {
			return ((JFrame) window).getRootPane();
		}
		return null;
	}
Returns the root pane if window has been created, otherwise null
@return the root pane if window has been created, otherwise null
Ghidra/Framework/Docking/src/main/java/docking/DetachedWindowNode.java