def METHOD_NAME(targetTitle: re.Pattern, logger: Logger) -> Optional[Window]:
	windows = _GetWindows(
		filterUsingWindow=lambda _window: bool(re.match(targetTitle, _window.title))
	)
	if len(windows) == 1:
		logger(f"Found window (HWND: {windows[0].hwndVal}) (title: {windows[0].title})")
		return windows[0]
	elif len(windows) == 0:
		logger(f"No windows found matching the pattern: {targetTitle}")
		return None
	else:
		logger(f"Too many windows to focus {windows}")
		return None