Continuing the discussion from Some cool examples of my own:
That’s is most easily done in LayOut. You can draw a shape in front of the viewport whose top edge follows the terrain line and covers the foundation below ground. Give the shape white fill and no stroke. Alternative, you could draw a shape that outlines what you want to show of the viewport and use it as a clipping mask.