Handles in the viewport

I am trying to make a tool similar to Matrix Gold. I want handles in the viewport to adjust parameters, rather than typing them in. Are there any code examples for handles?