Heat olive oil in a skillet over medium-high heat. Add chopped onion and cook until golden brown - takes about 5 to 7 minutes.
Add mushrooms and cook until golden brown, stirring occasionally.
Add garlic, sugar, salt, and pepper, and stir well.
In a small bowl, whisk water or broth with cornstarch. Continue whisking until the cornstarch is fully dissolved and no lumps remain.
Slowly pour the cornflour mixture into the pan- it will sizzle! Stir, scraping the bottom of the skillet, for 1 minute or until mostly evaporated.
Lower heat to medium so the sauce is simmering.
Simmer for 2 - 3 minutes until it thickens. It shouldn't be super thick, this is a rich sauce.
Remove from stove.
Serve warm over the Bourekas.