Select your Menu Anchor and scroll to the bottom of the Details panel
Bind a function to On Get User Menu Content (On Get Menu Content is deprecated so don’t use that)
That function expects you to return a widget, so it’s in here that you’d call the CreateWidget function. You can plug a variable into that and then you can define that class at runtime.