How to allow drawing on a widget.

I want to allow a touchscreen mobile user to sign their signature by drawing on the screen, and do this through a widget if possible. How can I do this?