You can easily use glazing ratio component.
You should define window size as floor area dependent using with geometrical definitions in Grasshopper. You can create this kind of logic:
FloorArea / WallArea(South) = c (constant) -----> c should define in any scope like 1 < c < 10 ;
_glzRatio = 0,c ;
Cheers,
Oğuzhan