01 - Preheat oven to 350°F (175°C). Prepare a 9x13-inch (23x33 cm) baking dish by lightly greasing it with softened butter. Arrange the sourdough bread cubes evenly within the prepared dish.
02 - In a large mixing bowl, thoroughly whisk together the eggs, whole milk, heavy cream, granulated sugar, vanilla extract, ground cinnamon, ground nutmeg, and salt until a homogenous mixture is achieved.
03 - Pour the prepared custard mixture evenly over the sourdough bread cubes in the baking dish. Gently press down to ensure all bread pieces are adequately saturated. Allow the mixture to stand for a minimum of 10 minutes. For enhanced flavor, refrigerate overnight.
04 - Place the baking dish in the preheated oven and bake for 40–45 minutes, or until the surface is golden brown and the interior is set.
05 - While the casserole bakes, combine the mixed berries, granulated sugar, lemon juice, lemon zest, and water in a small saucepan. Bring the mixture to a gentle simmer over medium heat, stirring periodically. Continue to cook until the berries begin to break down and the sauce slightly thickens, approximately 8–10 minutes. Remove from heat and reserve.
06 - Remove the baked casserole from the oven and allow it to rest for 10 minutes. Serve warm, generously topped with the prepared berry compote and any desired optional garnishes such as powdered sugar or maple syrup.