public boolean isLastComponentInWindow(ComponentProvider provider) {
		Window providerWindow = getProviderWindow(provider);
		WindowNode providerNode = root.getNodeForWindow(providerWindow);
		if (providerNode != null) {
			return providerNode.getComponentCount() == 1;
		}
		return false;
	}
Returns true if the given provider is the last provider in its window.
@param provider the provider
@return true if the given provider is the last provider in its window.
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManager.java