In the picture the red line shows rest of the dialogue window/box
I have a viewport based dialogue window popping up above player when interacting with stuff. But when I'm close to a wall, it goes through it. The simplies solution would be to make it render in front of everything I just don't know how to do it.
Other solution would be moving the dialogue box away from a wall as player gets close to it, but I have even less of an idea how to do that. Kind of like this: