Preheat the oven to 180 C / Gas 4. Line a small baking dish (20-23cm square or similar) with parchment.
Prepare the cottage cheese: heat the milk in a saucepan. The second it starts to boil, add vinegar or lemon juice. Remove from heat and wait for the milk to curdle. Separate the curds from the whey by passing through a piece of muslin set in a colander. Reserve 2 tablespoons of the whey.
Transfer the cottage cheese (the curds) to a bowl and mash with the semolina and sugar. The mixture should be soft and moist. Continue to mash and add the reserved whey, ghee, baking powder, raisins and nuts. Transfer mixture to prepared dish.
Bake in the preheated oven for 50 minutes. Remove from oven and cool before slicing and serving.