I’ve done something similar myself, though not exactly as you draw in your graphic. Using invisible meshes to occlude things that are behind it:
In your graphic you do a boolean operation where your plane seems to be cutting the box on the intersection point. That I am not sure there is an easy way to do so (without generating a new mesh).