Line a tray with parchment paper and grease it well. Greasing the tray and parchment paper will help the coconut burfi to come out easily when serving.
Combine milk and sugar in a heavy-bottomed pan.
Stir it well until. Keep stirring until the sugar melts and the mixture starts to boil. Tip - Milk needs to be stirred continuously when boiling and not left unattended as it may stick to the pan and get burnt. Add the desiccated coconut to the milk mixture.
Add essence to this mixture.
Cook the coconut mixture over medium-low heat (appx. 15-18 minutes), stirring intermittently until all the moisture evaporates.
Soon the mixture will start to thicken and leave the sides of the pan. Cook to a stage where the coconut mixture becomes thick yet moist.
Turn off the cooktop and allow the coconut mixture to cool slightly. After it cools, it will form a non-sticky ball when rolled in between your palms. The burfi mixture is ready if the rolled coconut ball retains its shape.
Divide the coconut mixture into two equal parts. Add food color and cardamom powder to one of the coconut mixture.
Mix it well until all the ingredients are well blended. After mixing, you will attain a nice pink color. Set it aside.
Transfer the white coconut layer to this greased pan.
Using a spatula, spread it around into a thick burfi. As you spread, press and pack the coconut mixture down firmly. The pressed coconut mixture will look like a thick block. Smoothen the top layer and edges with the spatula.Tip - Tightly pack the barfi when setting: When setting the coconut burfi in the tray, ensure that the layer of the coconut mixture is pressed tightly, as the loosely set mixture will result in a crumbly burfi. Now place the pink layer on top and press and pack it down the same way you did with the white layer.
Garnish the coconut burfi with pistachios, dried edible rose petals, and coconut shavings.
Cover it with plastic wrap and set it in the fridge for an hour.
Once set, remove the burfi from the tray. Cut the burfi into the desired shape.
Serve and enjoy a rich, creamy, decadent dessert with the nutty flavor of coconut in every bite.