How can I launch a custom dialog from a ListItem context menu?



As the title states, how can I call a custom dialog from a ListItem context menu in my addon? What do I pass for the action argument of

Code:
ListItem.addContextMenuItems(...)

? And how do I dynamically (at runtime) populate this dialog? The Kodi docs are a bit confusing…