On X11 the menu is a window of the application: tk_popup returns as soon as the menu is posted, and the menu generates <Map> and <Unmap> events when it is posted and unposted. On Windows and macOS the menu is displayed by the system, which runs its own event loop while the menu is posted: tk_popup does not return before the menu is unposted again, and no <Map> or <Unmap> event is generated for it.
# Create a menu
set m [menu .popupMenu]
$m add command -label "Example 1" -command bell
$m add command -label "Example 2" -command bell
# Create something to attach it to
pack [label .l -text "Click me!"]
# Arrange for the menu to pop up when the label is clicked
bind .l <Button-1> {tk_popup .popupMenu %X %Y}