Working with JPEG / DNG side by side

Hi! I really enjoy retouching the awfully processed JPEG my camera shoots. Unfortunately clicking the JPEG and back means loosing all DNG history, as the file seems to autosave in the process (I know Rawtherapee can’t save history / snapshops to PP3s yet), but there has to be a way to do these. Showing JPEG and DNG much like the before / after arrangement. Or any chosen photo with any other.
Any ideas?
Thank you so much.

Not sure if it is possible in RT but for sure DT you can take a snap shot of the jpg and compare that to your edit… in the new release you can zoom and pan in sync as well

In fact, the proposal should be comparing any image with any other, much like in photo management apps like digiKam.
Many cameras / phones shoot both JPEG/DNG at the same time (there’s the incrusted JPEG anyway) so is against this JPEG that the comparison makes more sense so the edit is also compelling. Just less processed. IMO.