This mechanism (group of 4 bars and 6 revolution joints + two cranks) has 2 degrees of independence.
Use two pink grips to open the window to the desired direction.
Measure to create friction in the joints is needed for holding the window at adjusted position.