Create a button in the viewport?

how can i make some kind of floating button in the viewport that controls my grasshopper script?
it should be near the object selected, then when i click it will execute some kind of script
there are some components that display text to the screen, but i haven’t found one that lets you create something that can register clicks

I want to make this kind of thing that you can find in other cad software:

maybe you can try using WinForm ToolStrip or WPF’s equivalent.