/Engine/Source/Runtime/Slate/Public/Framework/Application/MenuStack.h
Finds a menu in the stack that owns InWindow. Although this method isn't deprecated, it is intended for private use insideFMenuStackand its use as a public method should be avoided. Menus should be identified in client code asIMenuinterfaces.
The menu in the stack that owns InWindow, or an invalid ptr if not found
[TSharedPtr](API\Runtime\Core\Templates\TSharedPtr)< [IMenu](API\Runtime\Slate\Framework\Application\IMenu) > FindMenuFromWindow ( [TSharedRef](API\Runtime\Core\Templates\TSharedRef)< [SWindow](API\Runtime\SlateCore\Widgets\SWindow) > InWindow ) const