src/vs/workbench/electron-sandbox/parts/titlebar/titlebarPart.ts/TitlebarPart/updateLayout
class TitlebarPart:	override updateLayout(dimension: Dimension): void {
		this.lastLayoutDimensions = dimension;

		if (getTitleBarStyle(this.configurationService) === 'custom') {
			if (isMacintosh || this.currentMenubarVisibility === 'hidden') {
				this.rootContainer.style.height = `${100.0 * getZoomFactor()}%`;
				this.rootContainer.style.width = `${100.0 * getZoomFactor()}%`;
				this.rootContainer.style.transform = `scale(${1 / getZoomFactor()})`;
			} else {
				this.rootContainer.style.height = `100%`;
				this.rootContainer.style.width = `100%`;
				this.rootContainer.style.transform = '';
			}

			runAtThisOrScheduleAtNextAnimationFrame(() => this.adjustTitleMarginToCenter());

			if (this.customMenubar) {
				const menubarDimension = new Dimension(0, dimension.height);
				this.customMenubar.layout(menubarDimension);
			}
		}
	}