Include Widget Interaction to previous Unreal

Ok, if I add Widget component c++ code to my project (from add C++ code inside the engine), I am not able to add the new created component to any actor