How to rig the swing window hinge?

The IK constraint has a target that it will move the end of the bone chain to:

You could set the empty that controls the movement of the bottom plate as your target, it may need to be adjusted for side to side alignment.