nDisplay custom depth stencil?

I want to use nDisplay to create two viewports of the same mesh.

The first viewport is the color output, the second viewport needs to render a custom depth stencil or object mask.

How to get this working? Is it possible to redirect buffers? Is it possible to assign post process materials to viewports?