How do I do a transparent 'magic' box

Hi,

I’m trying to do this trick.

I want to make a box which renders everything inside it transparent but is also transparent to the outside world.
I want to use this box in order to hide part of an existing object so I would like to place a box around part of the object.

Any help would be appreciated.

.