UCanvas in widget?

Is it possible to use the UCanvas object inside a widget?

I need to do some basic line drawing for a mod I’m creating and the only reference I can find involve the AHud class but since I’m creating a mod I don’t think I can override the games hud setting.