How to capture click events in script editor

I want to try to do some enhancements like show a small panel when clicking on a class or method.

Are you talking about enhancing the Godot editor itself? Godot should already display information about the method or class on hover and CTRL / CMD click will take you to the reference. But maybe I’m misunderstanding what you are trying to accomplish.

Yes, u are right.
But other mainstream IDEs do better, clicking on variables or methods to trigger an event, which can be used to do many things