Display the named popup menu at the current mouse position.
First available in version 3.0 build 2039.
name - The name of the menu to display.
result - The id of the item selection that caused the menu to be dismissed or 0 if the menu was dismissed with no item selected (i.e. by pressing the escape key or clicking outside the menu).
When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.