How to create a guide mask?

Someone suggests me to get widget’s location and size to make UV and make reverse mask material.