Is there a way of getting the panel type under cursor?
My use case is to have a different commands pop up in my plug-in depending on where the cursor is under.
For example, if its on the viewport, create primitive objects
if its on the object manager, create light objects.
I know the example is crude but something like that.