Fastening frames to the border of openings or to similar contiguous frames