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

		// Show it
		this.contextMenuService.showContextMenu({
			getAnchor: () => anchor,
			menuId,
			contextKeyService: this.contextKeyService,
			domForShadowRoot: isMacintosh && isNative ? event.target : undefined
		});
	}