src/vs/workbench/electron-sandbox/parts/titlebar/titlebarPart.ts/TitlebarPart/layout
class TitlebarPart:	override layout(width: number, height: number): void {
		super.layout(width, height);

		if (useWindowControlsOverlay(this.configurationService, this.environmentService)) {
			const newHeight = Math.trunc(this.element.clientHeight * getZoomFactor());
			if (newHeight !== this.cachedWindowControlHeight) {
				this.cachedWindowControlHeight = newHeight;
				this.nativeHostService.updateTitleBarOverlay({ height: newHeight });
			}
		}
	}