Dissolve sugar in coconut milk to create coconut syrup.
Whisk egg yolks and cardamom powder together, then mix in all-purpose flour and coconut syrup into a smooth batter.
Pour a thin layer of batter into a greased baking pan and bake or grill under broiler for 5 minutes until browned.
Brush with a spoonful of melted ghee, pour another thin layer of batter over top, and repeat the process layer by layer until all batter is used.
Cool completely, slice into squares, and serve.