Wash, peel and grate the gourd. Grate the gourd from all the four corners leaving the center part consisting of seeds. You can grate it in a food processor also.
Put the grated gourd into the pan. Add sugar and stir it continuously. On boiling the gourd will start leaving a certain amount of water in the pan. Stir it after every 5 minutes and cook till the water gets totally evaporated.
Once the water evaporates completely, add ghee and cook it for 6-7 minutes. After that add mawa, cashews, and raisins into the halwa and stir it. Cook it for another 5-6 minutes. Gourd Halwa is ready. Turn off the flame and mix cardamom to it.
Take it out in a serving dish. Garnish with cashews and serve it hot.