The courtyard is the oficial way in to the school.
Like many traditional castles, the entrance has a port cullis (like a grid that can be raised and dropped)
As well as an inner gate before you arrive in the courtyard.
These are used to barricade and protect the castle.
Also protecting the castle entrance are draggons.
The circle in the middle is a fountain.