How do I access the "Edit Collider" function from the inspector in a custom editor.

I am writing a simple editor extension that sorts, manages, and allows for quicker placement of 2D colliders in the editor scene view. Currently I feel like having the neat “Edit Collider” button found on any collider’s inspector component available next to the other editing options I have available would be an ideal way to improve flow of use.

I have been searching for an embarrassing amount of time now, and yet, I just can’t seem to find the way to do this in the scripting API, I imagine it is right in front of me, but I just can’t see it yet.

Does anyone know how to achieve this?

You need to most likely use Handles and the HandlesUtility, in the documentation as you look through it, you will see many many many examples of in editor usage.

For instance, a Circle Collider 2D looks like the the handle used is DrawWireDisc