We just added a new section to our developer docs going over Gtk.Popover, GLib.Menu, using Gtk.GestureClick for detecting secondary-click, Gtk.MenuButton, opening the menu with a keyboard shortcut and more, complete with full code samples! https://docs.elementary.io/develop/writing-apps/popovers