I really never thought about that tiny space between the back of the disconnect and mounting surface of the wall
Duct seal around the opening where the cable comes out then squish the disconnect into place. I do the same thing with Bell boxes and wall packs fed from inside.