private boolean isMyWindow(Window win) {
		if (root == null || win == null) {
			return false;
		}

		Window rootFrame = root.getMainWindow();
		if (rootFrame == win) {
			return true;
		}

		WindowNode node = root.getNodeForWindow(win);
		if (node != null) {
			return true;
		}

		// see if the given window is a child of the root node's frame
		if (SwingUtilities.isDescendingFrom(win, rootFrame)) {
			return true;
		}
		return false;
	}
Removes the supplier of the preference state for the given key.  

@param key the key with which to store the preferences.
@see #registerPreferenceStateSupplier(String, Supplier)
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManager.java