Halliday & Matthiessen (2014: 349):
… the Complement of a preposition can often emerge to function as Subject … This pattern suggests that Complements of prepositions, despite being embedded in an element that has a circumstantial function, are still felt to be participating, even if at a distance, in the process expressed by the clause.