If it’s really a UI you’re building, that is, above the world and in front of everything, then you can use the Skew from the widget. But you won’t get a real perspective. It will faked. However it’s easy to do.
The other approach is more complicated and involves having a 3D widget attached either to your character (if you want it to follow the player) or in the world (if it’s fixed).