System widget in user tool?

Hello,
Is it possible to somehow use the system widget in the tool.
Or some external library?
I need something like EQ5 where I can draw a curve and grab points.

Thanks