Add 1/3 cup of ghee to a large saucepan over medium high heat. Once melted, add the grated onions and caramelize. Stir frequently, and cook until the onions turn golden brown, it may take a good 15-20 minutes.
Once the onions have caramelized, set aside 1/4 cup of the onions onto another plate- this will be the garnish. To the rest of the onions in the pot, add the drained basmati rice, and toast, stirring constantly for 3-4 minutes.
Add the chicken stock, salt, cinnamon powder, black pepper and cinnamon stick. Stir to combine. Let this mixture come to a boil, then cover, reduce heat to low and simmer for 15 minutes or until the rice has absorbed all the liquid.
Turn of the heat and set the pot of rice aside without opening the cover. Let it stand 10 minutes, then fluff with a fork. Meanwhile you can toast the nuts and raisins.
Melt the remaining tablespoon of ghee in a small skillet over medium heat. Add the nuts, and toast for a few minutes until they start to turn golden brown. Add the raisins, and cook for another minute or so then immediately remove from the heat into a small bowl.
Place the rice (discarding the cinnamon stick) on your serving platter and top with the caramelized onions you reserved for garnish as well as the toasted nuts and raisins. Enjoy!