src/vs/platform/window/common/window.ts/useWindowControlsOverlay
export function useWindowControlsOverlay(configurationService: IConfigurationService, environmentService: IEnvironmentService): boolean {
	// Window Controls Overlay are only configurable on Windows
	if (!isWindows || isWeb || !environmentService.isBuilt) {
		return false;
	}

	if (getTitleBarStyle(configurationService) === 'native') {
		return false;
	}

	return configurationService.getValue<boolean>('window.experimental.windowControlsOverlay.enabled');
}