You can use the pulse mode of your mixer grinder to make a coarse paste. Now heat ghee in a pan and add the dal paste to it and stir and cook on low flame and see dal turning golden Stirring is key to a good dal ka halwa and you should not compromise on this step.
Next up, add warm milk in the cooked dal and cook until all the milk is soaked and dal is softened. Add the sugar and cardamom powder and fry on medium flame until dal ka halwa turns golden brown