How to use UI material?

I made a simple material, make sure the Material Domain is set to User Interface.

Add the material to the Brush → Image: