Grease a pan or tray with ghee, line with parchment paper overhang (extra paper hanging over the sides). I used a 7 x 5 x 0.5 inch (L x B x H) pan.
Add grated or crumbled mawa into a heavy-bottomed kadai or pan. Roast it on low heat, for about 1 to 2 minutes, or just until it begins to warm and melt.
Add sugar, mix well, stirring continuously.
Sugar will melt and release moisture due to which the mixture will become runny.
Continue cooking on low heat, stirring frequently, until the mixture begins to thicken and leave the sides of the pan. When you see the large bubbles bursting, cook for another minute.
Switch off the heat. Continue mixing vigorously until the mixture cools down slightly, for about 3 to 4 minutes.
Immediately transfer the mixture to the prepared pan, flatten it using an offset spatula or the back of a spoon. Allow it to set for about 6 to 8 hours or overnight at room temperature. This will depend on the size and thickness of your pan.
Lift the parchment paper out of the pan. Garnish with silver varak.
Cut into desired sized pieces. Enjoy khoye ki barfi!