Firstly, select sauté on the instant pot and add 2 cups of water. Once the water boils, add in the sugar and mix well until the sugar dissolves.
Remove the water and sugar mix and keep it a bowl aside. Rinse and clean the pot well.
Next, select sauté on the instant pot and adjust to normal. Then, add in ghee to the pot.
When the ghee is hot, add in whole wheat flour, and stir well.
Keep stirring continually for about 10 minutes until the color changes from light brown to golden brown.
Further, add in the water and sugar mix, ground cardamom, roasted cashews, and golden raisins. Keep stirring until all the water is absorbed. Roughly for 2 minutes. Sauté until some more ghee oozes out of the sides of the halwa.
Transfer the cooked halwa to a serving bowl. Enjoy it hot.