How can I optimize this render of a double-glass window?

You can try using this addon: OptiX-Denoiser-for-Blender

More info about the addon at this topic.