Make object always visible

Object:

Make an object always visible, even when part of it is behind another object.

Example:

Now we have an outline box and half of it is in a big box, and half of it is outside of big box:
result

Can we make the part inside the big box visible, like:
expected

Thoughts