Closes the open popup menu on a window, if one exists.
Note: Only one popup menu will ever be showing at a time. Calling showPopupMenu
will automatically close any existing popup menu.
Closing a menu programmatically
This could be used to close a popup menu if the user's mouse leaves an element for example.
await fin.me.closePopupMenu();