Halliday & Matthiessen (2014: 142):
Note that [this way of identifying Subject] does bring in certain things that are not traditionally regarded as Subject: not only it in it’s raining but also there in there’s trouble in the shed, both of which function as Subject in Modern English.