In fact, Leica cannot just drop in an off-the-shelf sensor because of the short flange distance and small mount diameter in the M, with a corresponding stable of lenses that have rear nodal points that lie relatively close to the sensor plane and small exit pupil diameters.
As we know from the RD-1, the Fuji X-pro1, the NEX-7 and other cameras, using a sensor not optimized for these characteristics means that the image center can be OK but the image outer zones will have a poor MTF and chroma shift (and even optimized lenses have chroma shift). Consequently sensors for the M system require optimizations including thin cover glass, offset microlenses, and probably optimizations of the interference coatings on the cover glass and microlenses as well.