2 1/2 cups all-purpose flour
1/4 cup sugar
3/4 teaspoon fine salt
3/4 cup cold unsalted butter (1 1/2 sticks), diced
1 large egg
3 to 4 tablespoons very cold water
3 pounds baking apples, such as Golden Delicious, Cortland, or Mutsu (about 6 apples)
1 1/2 pounds baking pears, such as Bosc or firm Bartletts (about 3 pears)
2/3 cup sugar, plus more for sprinkling on the pie
1/4 teaspoon ground cinnamon
1/4 teaspoon ground ginger
1/4 teaspoon fine salt
Generous pinch freshly grated nutmeg
1/4 cup unsalted butter (1/2 stick)
1/4 cup all-purpose flour
1/2 teaspoon pure vanilla extract
1 large egg, beaten
Whisk the flour, sugar, and salt together in a medium bowl. Rub 1/4 cup of the butter into the dry ingredients with your fingers until completely absorbed. Then rub in the remaining butter until it resembles cornmeal mixed with pea-size bits of butter. (If it gets warm and sticky, refrigerate it to chill.)
Beat the egg with 3 tablespoons of the water; then drizzle it evenly over the dough. Lightly stir the dough together with a fork. (The dough should just hold together when you squeeze it together, with some dry crumbly bits.) If the dough is really dry, sprinkle it with the final tablespoon of water. (To make the dough in food processor, see below.)
Divide the dough in half and wrap each half in plastic wrap and shape into disks. Refrigerate at least 1 hour or up to 2 days. (The dough can be frozen for 2 months. Defrost dough in the fridge overnight.)
Finely grate the lemon zest and set aside. Peel, core and then slice both the apple and pear into 1/2-inch slices. Squeeze the lemon juice over the fruit, then toss fruit with the sugar, cinnamon, ginger, salt and nutmeg.
Melt the butter in a large skillet over medium-high heat. Add the fruit and cook, stirring until the sugar dissolves and juices simmer, about 2 minutes. Reduce heat to medium, and cook, uncovered, until the fruit softens and the juices evaporate some, about 10 minutes. Evenly mix the flour into the fruit; then cook about a minute more to thicken the juices slightly. Stir in the vanilla and lemon zest; and remove from the heat. (The filling should resemble a tight compote.) Cool completely.
Form the pie:
Lightly dust the work surface with flour. Roll a disk of dough into an 11 to 12-inch circle. Transfer the dough to 9-inch glass pie pan (see photo), trimming so it hangs about 1/2-inch over the edge of the pan. Fill the crust with the prepared fruit so it mounds slightly in the center. Roll the remaining dough into a 12-inch circle. Brush the rim of the crust with some of the egg.
Roll the dough onto the rolling pin and unroll it over the fruit so it hangs over the edge of the pie pan by about 1/2-inch. Trim crust if needed, reserving the scraps for decorations or for patching, if needed. Fold the top crust edge under the bottom one, then press the edges together to seal. Cut trimmed scraps into designs if desired and set aside. Flute the crust by pressing a finger into the crust against the other hand’s index finger and thumb to make an even impression. Repeat every 1/2 inch around the pie to create a ruffled edge (see photo). Refrigerate the pie for at least 20 minutes.
Meanwhile, place a rack in the lower third of the oven and heat to 425 degrees F.
Brush pie with egg and place cut dough designs on top if desired. Brush again and sprinkle with sugar. Cut 6 to 8 small steam vents into the top of the dough. Place pie on a baking sheet and cook for 15 minutes, then reduce the temperature to 375 degrees F. Bake until the crust (both top and bottom) is golden brown, about 50 minutes more. If the edges begin to brown too quickly, cut a pie shield out of a piece of aluminum foil and cover the edges (see photo). Cool on a rack.
Serve pie warm or at room temperature with whipped or ice cream. Keep pie, covered, at room temperature for a day, or refrigerate for up to four.