How to add widget in Unreal Engine?

none, blueprint generates it, just use function from 2nd link to get it