Optimizing Window Design For Energy Efficiency And Safe Construction