01 - Preheat the oven to 425°F. Line a baking sheet with parchment paper.
02 - In a large bowl, combine butternut squash cubes, apple slices, and red onion with olive oil, thyme, salt, and black pepper. Toss to coat evenly.
03 - Spread the mixture evenly on the prepared baking sheet. Roast for 20 to 25 minutes, stirring once, until squash is tender and lightly caramelized. Allow to cool slightly.
04 - In a food processor or large bowl, blend flour and salt. Add cold butter and pulse or cut in with a pastry blender until the mixture resembles coarse crumbs. Gradually add ice water, mixing just until the dough comes together. Shape into a disk, wrap in plastic, and refrigerate for 20 minutes.
05 - On a lightly floured surface, roll the dough into a 12-inch circle. Transfer to a parchment-lined baking sheet.
06 - Arrange the roasted squash, apples, and onions over the center of the dough, leaving a 2-inch border. Drizzle with honey or maple syrup and sprinkle with crumbled cheese if using.
07 - Fold the dough edges over the filling, pleating as necessary. Brush the crust with beaten egg and sprinkle with coarse sugar if desired.
08 - Bake for 25 to 30 minutes, or until the crust turns golden brown and crisp. Cool slightly before slicing and serving.