you can use domain-wise coefficient functions by using as list of values/functions as argument of the CoefficientFunction.
Code:
from netgen.geom2d import SplineGeometry
geo = SplineGeometry()
geo.AddRectangle((0,0),(1,1),leftdomain=1,rightdomain=0)
geo.AddRectangle((0.3,0.3),(0.7,0.7),leftdomain=2,rightdomain=1)
from ngsolve import *
mesh = Mesh(geo.GenerateMesh(maxh=0.2))
Draw(mesh)
Draw(CoefficientFunction([1,2]),mesh,'cf')
I hope that's what you are looking for.