In a large bowl, whisk together the oat flour, all-purpose flour, granulated sugar, and salt for the crust. Add the cold butter cubes and work them into the flour mixture with a pastry cutter or your fingertips until the mixture looks crumbly with some pea-sized pieces of butter still visible.
Stir together the ice water and apple cider vinegar. Drizzle this mixture into the flour mixture a little at a time, tossing gently until the dough starts to come together when pressed. Divide the dough into two equal portions, shape each into a disk, wrap well, and chill for 60 minutes.
While the dough chills, prepare the filling. In a large bowl, combine the sliced apples, brown sugar, granulated sugar, cornstarch, cinnamon, salt, lemon juice, and vanilla extract. Toss until the apples are evenly coated, then set aside for 20 minutes so the fruit begins to release some juices.
Preheat the oven to 425°F. Place a baking sheet on the lower rack to catch any drips and help the bottom crust bake well.
Lightly flour a sheet of parchment or a work surface and roll out one dough disk into a circle about 12 inches wide. Transfer it to a 9-inch pie dish, easing it into the corners without stretching. Trim any excess, leaving a slight overhang.
Give the apple filling another toss, then transfer it to the pie shell, mounding it slightly in the center. Pour any thickened juices from the bowl over the apples and dot the top with the 1 tablespoon of butter pieces.
Roll out the second dough disk to about 12 inches wide. Place it over the filling or cut it into strips for a lattice. Trim the excess, then tuck and crimp the edges to seal. Cut several vents in the top if using a full crust.
Brush the top crust lightly with the beaten egg and sprinkle with the coarse sugar. Bake at 425°F for 20 minutes.
Without opening the oven for long, reduce the temperature to 375°F and continue baking for 35 minutes, or until the crust is deep golden and the filling is bubbling through the vents or lattice.
If the edges brown too quickly, loosely shield them with foil during the final part of baking. Remove the pie from the oven and cool on a rack for 120 minutes before slicing so the filling can set properly.