I had a Cascade brand double-hung, double-paned window fail. The bottom of the shoe is fairly thin and made of 10-year old low-quality plastic or vinyl. Replacement was going to be $1,100+. So I designed and printed replacement shoes (which was what failed) including the rotating lock.
In the photos, you see the original from another window in white. I printed mine in red because it's the ABS I had available and you can't see it anyway, but really printing them in white would be better.
The stopper at the top which holds the shoe when the window is fully up and locked has a central tab which locks to the moving shoe. The original shoe has an incline on the central bridge between the two sides that lets the lock slide up and grab the shoe. My model doesn't have this as I only figured it out on installation. It seems to work ok anyway, but its something you should think about fixing.
The OpenSCAD models are a little hacky. Ideally they'd be more generalizable to make other shoes for other windows. The total space between the rotating lock and the shoe body is 1/4mm, so it's a tight fit but works well if you play with it a little to remove any little bits of plastic.
When printing - use something strong like ABS and use a high in-fill. You want this to be strong to hold up your window! Don't over-tighten the spring screws in to the shoe. Make them tight but don't strip the plastic.
If you like these please consider my patreon - https://www.patreon.com/SteveCoast