High-performance windows and doors