How to create actions on panel such as having context menu on click

Is there a way can I create actions such as open context menu on right click or mouse double click events for panels which are of Grafana widgets or Grafana Plugins (web component) ? I’m not sure if we need to create a interaction layer on top of panel to have these features, if so how can I create?

@daniellee/@peterholmberg Can you please help me answer this question?