Masks can't work with sorting layers directly, but if you sequence the mask to render at the correct point yourself, that will work fine.
The mask needs to draw BEFORE the stuff its masking, but after everything else its drawing on top of.
The current inspector doesn't expose the necessary SortingLayer parameter, drop me an email at support at unikronsoftware.com and I'll get you a patch.