I used one of these last summer when our central air shit the bed. It definitely did the trick and was easy as hell to install. I suppose if you’re looking for a long term solution, mimicking the same concept with marine grade plywood with a bit of sealer or paint might work best.
This or something similar should be sufficient
https://www.amazon.com/HOOMEE-Universal-Window-Portable-Conditioner/dp/B07BPZGJ3B