How to add a global click event?

How to add a global click event (I want to trigger an action by clicking on the global panel)