Prepare the Apricot Filling In a medium saucepan, combine the chopped apricots, water, and granulated sugar. Bring to a simmer over medium heat, stirring occasionally, for about 10-12 minutes until the apricots are softened and the mixture thickens. Remove from heat, stir in the lemon juice and vanilla extract, and set aside to cool.
Preheat Oven and Prepare Pan Preheat the oven to 350°F (175°C). Grease a 9x9-inch baking pan and line it with parchment paper, allowing some paper to hang over the edges for easy removal.
Make the Crust and Topping Mixture In a large mixing bowl, whisk together the flour, brown sugar, shredded coconut, baking powder, and salt. Add the melted butter and egg, stirring until combined. The mixture should be crumbly but hold together when pressed.
Assemble the Bars Press about two-thirds of the crust mixture firmly into the prepared pan, creating an even layer for the base. Spread the cooled apricot filling evenly over this base. Sprinkle the remaining crust mixture over the top of the filling, creating a crumble effect.
Bake the Bars Place in the preheated oven and bake for 25 to 30 minutes, or until the topping turns a lovely golden brown and the filling is bubbling joyfully at the edges. Remove from the oven and let cool completely in the pan.
Slice and Serve Once cool, lift the bars from the pan using the parchment paper overhang and cut into squares. Enjoy these bars at room temperature or lightly chilled.