Hierarchy pane like context menu

I’m making my own tools and editor panes for my game and I wonder if there is any way of displaying for a custom window a context menu similar to the one shown in the hierarchy pane when you right-click an item

Thanks

Sure. It’s just another box or window of GUI though, there is no special support for popups of any kind in the Unity GUI system, so for the popping down, modality and other traditional properties of popups, you have to implement the behaviour yourself.