How to make an inspector window like the Button class?

So I am currrently writing a very broad script, that I want to be able to just drag and drop whatever method I want to call from it. How does one go about making an inspector window to do so, like the button script?

92054-button.png

I have a public method in the script that I am writing, that I would like to be able to do exactly what the button class does in the inspector.

You want to expose a UnityEvent.