Heat the ghee: Heat ghee in a heavy-bottomed pan over low to medium heat.
Roast the flour: Add whole wheat flour and roast slowly, stirring continuously until it turns golden brown and releases a nutty aroma.
Roast the dry fruits: Add chopped almonds, cashews, raisins, and melon seeds. Mix and roast for another 2–3 minutes.
Cool the mixture: Turn off the heat and allow the mixture to cool slightly.
Add sugar and cardamom: Add powdered sugar and cardamom powder. Mix everything thoroughly.
Serve: Let the Panjiri cool completely, then store it in an airtight container.