public List<Window> getWindows(boolean includeMain) {
		ArrayList<Window> winList = new ArrayList<>();
		if (includeMain) {
			winList.add(root.getMainWindow());
		}
		for (DetachedWindowNode node : root.getDetachedWindows()) {
			Window win = node.getWindow();
			if (win != null) {
				winList.add(win);
			}
		}
		return winList;
	}
Returns a list with all the windows in the windowStack. Used for testing.

@param includeMain if true, include the main root window.
@return a list with all the windows in the windowStack. Used for testing.
Ghidra/Framework/Docking/src/main/java/docking/DockingWindowManager.java