src/vs/platform/menubar/electron-main/menubar.ts/Menubar/onDidChangeWindowFocus
class Menubar:	private onDidChangeWindowFocus(): void {
		if (!isMacintosh) {
			return;
		}

		this.noActiveWindow = !BrowserWindow.getFocusedWindow();
		this.scheduleUpdateMenu();
	}