Context menus in the editor, extended by a plug-in?

I’d like to write a plugin that adds a menu entry to the editor context menu for actors, especially lights and cameras. Is this possible? Are there code samples for this? I’d like this to work for 4.26.