Draw 3D box

I’m trying to reproduce the frame function from a software like this


I used to use the vtkborderwidget, But it seems to be a 3D frame with different viewing angles, So I don’t konw how to do