In this example, are the subject and complement inverted, or could it be possible to understand that ‘The thing’ or something of the subject of verb ‘was’ is dropped?
Perched atop a high mountain on the other side, its windows sparkling in the starry sky, was a vast castle with many turrets and towers.