How to get the Custom Depth Value in a Material?

Primitive Components have the ability to write Custom Depth.
You also can specify a Custom Depth Value from 0-255.
However, There is no Slider/Node for this value in the SceneTexture:CustomDepth Node.

0-255 is most likely stencil value and there is a corresponding scene texture for that.