Prepare the rice: If using basmati, rinse it under cold water until the water runs clear. Soak for 15-20 minutes, then drain thoroughly.
Toast the spices: Heat the ghee or oil in a heavy-bottomed saucepan over medium heat.
Once hot, add the sesame seeds, whole cloves, peppercorns, cinnamon stick, and shredded coconut.
Stir-fry for 1-2 minutes until the coconut is fragrant and turns a light golden brown.
Sauté the rice: Add the drained rice to the saucepan and stir-fry for 2-3 minutes. The grains should become slightly translucent at the edges.
Cook the pilaf: Pour in the water and add the shredded carrots, salt, and raisins. Increase the heat to high and bring the mixture to a rolling boil.
Simmer: Immediately reduce the heat to the lowest setting, cover the saucepan with a tight-fitting lid, and let it simmer gently for 20-25 minutes.
Do not lift the lid or stir. The rice is done when it's fluffy and all the liquid has been absorbed.
Rest and fluff: Turn off the heat and let the rice rest, still covered, for at least 5 minutes. This allows the grains to firm up.
Before serving, gently fluff the rice with a fork to separate the grains.
Don't skip the 5-minute resting period! It's crucial for allowing the steam to redistribute, ensuring perfectly fluffy, non-sticky rice grains.