The word touch is a very common word used as a verb or noun.
In the sentence presented, it's a countable noun that means a light movement or placement of a part of yourbodyyour body, specially your hand on the window.
The window opened only on a light movement of a part of your body, most probably your hand, and it provided a view of a wide courtyard.