Create an invisible object that occludes objects behind it with .renderOrder

It is possible to create an invisible object that occludes objects behind it, using Mesh.renderOrder and Material.colorWrite properties.

Here is a simple example: