UMG UI does not show up when launching from Visual Studio

Hi, I am new to Unreal Engine (UE). I follow the lesson of applying UMG UI with UE Visual Studio C++ project. (Quick Start Guide to Unreal Motion Graphics in Unreal Engine CPP | Unreal Engine 5.2 Documentation). When I launch the simulation from UE, everything is fine, UI appears as it is. But when I run the simulation from Visual Studio project, UI does not show.
Since the project I have to apply has a limitation to launch the application from only the Visual Studio.
Is there any way to make the application to show UI when it runs from visual studio?

Thanks in advance.