I had a driver do this about 6-8 years ago. Be sure to factor in the escape hatch in the side of the box. I think he said there's some reg out there requiring it. But he may have made that detail up.
I can't remember what he used to seal between them but the box and can flex on the frame at...