How to create a widget inside a behavior tree task?

I am trying to open up a widget in a behavior tree task, but every time I try it keeps saying doesn’t inherit. Any ideas on how to create/open a widget through a task in the behavior tree?