Today I was finally able to figure out how to stdin from a file for systemctl edit :-)

env SYSTEMD_EDITOR=tee  sudo -E systemctl edit --system [your_unit_name] < [your_content_file]

I found it HERE.