Looking into RectMask2D, it says it doesn't use the stencil buffer, which is what STM uses to mask itself with Unity UI, so I don't think it's compatible for the time being, unfortunately...
I'm trying to research how I can make it compatible... if I can find it, I'll try to add it!