src/vs/workbench/browser/parts/titlebar/titlebarPart.ts/TitlebarPart/onLayoutControlContextMenu
class TitlebarPart:	private onLayoutControlContextMenu(e: MouseEvent, el: HTMLElement): void {
		// Find target anchor
		const event = new StandardMouseEvent(e);
		const anchor = { x: event.posx, y: event.posy };

		const actions: IAction[] = [];
		actions.push(toAction({
			id: 'layoutControl.hide',
			label: localize('layoutControl.hide', "Hide Layout Control"),
			run: () => {
				this.configurationService.updateValue('workbench.layoutControl.enabled', false);
			}
		}));

		// Show it
		this.contextMenuService.showContextMenu({
			getAnchor: () => anchor,
			getActions: () => actions,
			domForShadowRoot: el
		});
	}