Disabling depth test on masked / opaque material - how ? (custom depth?)

I need to have static (or skeletal) actor/component to draw on top of my scene (but before certain actors/components that are close to camera). I saw something about custom depth pass online, but it didn’t seem to explain in simple terms how to set it up for such a basic effect.

Can someone please explain how to set up material and custom depth pass to achieve what I need ?