Some 15 years ago I dedicated an Amedeo Contax to LTM adapter to my through-the-lens viewer that I use to test lenses and adjust the shim. I have a test target set at 5m, focus a lens on it, and shim it until a mark "C" comes up for Contax, or "N" comes up for Nikon. It works. Placing the original marks took some time. After that- easy. I have to mark the Sonnars and Jupiters with an "N" or "C" to remind me which they are for.
When adjusting a Nikon camera to use the Sonnar- I used "MWS2" washers, stacked to 0.5mm. The Nikon S2 was missing a set of original shims under one of the three fastening points. SO- I had to do something, and had 4 other S2 bodies. I adjusted the Rangefinder to agree with the Sonnar used close-up and wide-open, focus set using a Loupe with the camera on "T". I happened to have an 8ft optics bench handy at the time, almost 25 years ago.
Focus is perfect, wide-open and close-up. Stop down a little for infinity.
Nikon S2 (0.5mm shims) with Carl Zeiss 50mm F1.5, wide-open.
With the Contax mount 135, wide-open.
Using Zeiss lenses on the Nikon is easier as focus shift for most lenses is towards infinity, over-corrected for spherical aberration.
Using Nikkor lenses on a Contax: except for the 10.5cm F2.5, which is under-corrected for spherical aberration, the error increases as you stop down.