The winch can be on the inside of the courtyard because from my understanding in later medieval times they had rudimentary understanding of gear systems and the mechanical advantage they produce. Also having gear box associated with the mechanism allows for the same ease in lifting from any direction. Could be wrong and me being an idiot though.