Make a cake dough by mixing all the ingredients for the layer and stirring until the mixture become homogeneous.
Put the resulting dough in a suitable heated oven dish and bake. For the glaze, put the water to come to a boil. Add the cocoa, sugar and butter to it.
Pour the hot mixture over the cooled layer.
Optionally, sprinkle with coconut flakes.