Heat a wide pan over medium-high heat and add ghee. Once the ghee is hot, add the grated carrots and saute for 5-8 minutes till the moisture evaporates. Now add the milk powder and sugar and keep mixing till the sugar melts and the mixture thickens, for another 10 minutes.
If you want to cut it into squares, transfer the halwa into a lined baking tray, then press it gently with the back of a spoon and cut into squares before serving.
If you want it to be more crunchy and chewy, at the end of cooking time increase the temperature and keep stirring continuously for 5 more minutes. This can also be pressed into a pan and cut into squares, for serving.