If you want to modify the widget in BP, don’t create the RootWidget in C++ but instead setup yout RootWidget as a UPROPERTY and set it as meta=(BindWidget). Switch to BP and create a UPanel widget and name it RootWidget and set it as a variable (the names must match).
This should allow you to customize the UMG widget in BP.