Heat ghee in a deep pan. Add cloves, black peppercorns and onion. Sauté till onion starts turning brown.
Add sugar and sauté till it caramelizes.
Add drained rice and stir gently so that the rice grains do not break.
Add coconut milk and one cup of water and stir.
When the mixture comes to a boil, add salt and boil for five minutes.
Cover and cook on medium heat till done.
Remove from heat and allow to rest for five minutes.