private int getIndexForCurrentWindow(Window[] windows) {
		Window window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow();
		for (int i = 0; i < windows.length; i++) {
			if (window == windows[i]) {
				return i;
			}
		}
		return 0;	// this shouldn't happen
	}
Action for transferring focus to the next or previous visible window in the application.
Ghidra/Framework/Docking/src/main/java/docking/action/NextPreviousWindowAction.java