public static Window moveProviderToWindow(final DockingWindowManager dwm,
			final ComponentProvider provider) {

		AbstractGuiTest.runSwing(() -> {
			if (!dwm.containsProvider(provider)) {
				return;
			}

			ComponentPlaceholder placeholder = dwm.getActivePlaceholder(provider);
			DockableComponent dockingComponent = dwm.getDockableComponent(provider);
			Point point = new Point(0, 0);
			if (dockingComponent.isShowing()) {
				point = dockingComponent.getLocationOnScreen();
			}
			dwm.movePlaceholder(placeholder, point);
		});

		Window w = AbstractGTest.waitForValue(() -> dwm.getProviderWindow(provider));
		return w;
	}
Moves the given provider to its own window, at its current location. 

@param provider the provider to move
@return the provider's window
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManagerTestUtils.java