01 - Preheat oven to 400°F. Line a 10x15-inch rimmed baking sheet with parchment paper or lightly grease with cooking spray.
02 - In a large bowl, whisk together flour, sugar, and salt. Add cold cubed butter and cut into the mixture using a pastry blender or fingers until coarse crumbs form. Gradually drizzle in ice water, mixing just until dough comes together. Divide dough into two pieces, making one slightly larger than the other.
03 - On a lightly floured surface, roll out the larger dough piece to fit the bottom and up the sides of the prepared baking sheet. Carefully transfer dough to the pan and press evenly into place.
04 - In a large bowl, combine sliced apples, granulated sugar, brown sugar, cinnamon, nutmeg, salt, cornstarch, and lemon juice. Toss until apples are evenly coated.
05 - Spread apple mixture evenly over the bottom crust. Roll out remaining dough to form the top crust and place over apples. Trim excess dough, pinch edges to seal, and cut several small slits in the top for steam escape.
06 - Whisk together egg and milk in a small bowl. Brush mixture evenly over the top crust. Sprinkle with coarse sugar if desired.
07 - Bake for 35 to 40 minutes until crust is deep golden brown and filling is bubbling vigorously through the vents.
08 - Let cool for at least 30 minutes before slicing into squares. Serve warm or at room temperature.