Warm the milk until lukewarm, approximately 35–38°C (95–100°F). Stir in the yeast and a teaspoon of the measured sugar. Let stand for 5–10 minutes until foamy.
In a large mixing bowl, combine the flour, remaining sugar, and salt. Add the yeast mixture, melted butter, and egg.
Mix until a soft dough forms, then knead for 8–10 minutes until smooth and elastic. Add a little flour if necessary, but keep the dough soft.
Place the dough in a lightly greased bowl, cover with a clean kitchen towel, and leave in a warm place for approximately 60–90 minutes, or until doubled in size.
While the dough rises, prepare the cottage cheese filling. If using large-curd cottage cheese, drain any excess liquid and mash or blend until smoother.
In a mixing bowl, combine the cottage cheese, eggs, sugar, softened butter, and vanilla. Mix until creamy.
Fold in the raisins and chopped nuts, if using. Set the filling aside.
Preheat the oven to 180°C (350°F). Line a large baking tray with parchment paper.
Once the dough has risen, gently punch it down and roll it into a rectangle approximately 1–1.5 cm (½ inch) thick.
Transfer the dough to the prepared baking tray, forming a slightly raised edge around the sides.
Spread the cottage cheese filling evenly over the dough, leaving a small border around the edges.
Whisk together the egg and milk, then brush the exposed edges of the dough. The original recipe also calls for brushing the cheese topping with beaten egg.
Bake for approximately 25–35 minutes, until the edges are golden brown and the cottage cheese filling is set.
Remove from the oven and allow to cool for at least 15–20 minutes before slicing.
Cut into squares or rectangles and serve slightly warm or at room temperature.