Bring the water to a boil in a large pot, then add the sugar, salt, cinnamon, and the 1 tbsp of ghee.
Slowly stir in the rice flour. Cover, and cook on low heat until the water is absorbed and the mixture has the consistency of chapati dough. Let it cool.
Meanwhile, melt the ghee for the filling in a pan, add the coconut and sugar, and fry until golden brown.
Knead the cooled rice dough until smooth. Shape small balls, flatten them, and fill with the coconut filling and sesame seeds.
Deep-fry the filled pastries in hot oil or ghee until golden brown.