Mail Preferences Dialog broken since TimeMachine re-installation
Honestly a damaged install of macOS, regardless of the root cause, is often fixed by installing the latest Combo Update from Apple.

Google "Combo Update" and your macOS version and it should point you to a download page at support.apple.com. Quit out of all running apps and run the installer. It will take a while (depending on available disk space &amp; speed) and then ask you to reboot.

If your install is still glitchy you may want to try one of the free OS cleaner programs out there. I use Onyx (there are others). Be sure to download the one designed for your version of the OS.