Roast 2 tbsp of moong dal on low flame until aromatic and golden. Cool and grind into a fine powder.
Take 1 cup freshly grated coconut and 1 cup palm jaggery.
Add the roasted dal powder, coconut, and jaggery to a mixer jar and grind lightly. Add water little by little and grind into a thick paste.
Heat a pan with 2 tbsp ghee. Roast cashews, raisins, and almonds until golden. Remove and set aside.
Add the remaining 1 tbsp ghee to the same pan. Add the ground paste.
Cook on low flame, stirring continuously, until the mixture thickens and starts to come together and add a pinch of cardamom powder
Add half of the roasted nuts and mix well.
Add 1/2 tbsp ghee, mix again, and switch off the flame.
Serve warm as a soft therattipal or pour into a tray, cool, cut, and enjoy as barfi. Top with the remaining nuts.