After you pass through the gate at Guardroom Square to enter the castle you can see the main gatehouse into Stirling Castle. This appeared in a scene in Kidnapped.