private static List<Window> getAllWindows(Window parent) {
		List<Window> list = new ArrayList<>();
		list.add(parent);
		for (Window w : parent.getOwnedWindows()) {
			list.add(w);
		}
		return list;
	}
Gets all windows in the system (including Frames).

@return all windows
Ghidra/Framework/Gui/src/main/java/generic/test/AbstractGuiTest.java