Albert Einstein used thought experiments as a tool for formulating his theories. His theories provided predictions that can be tested in observation and experiments. He did not perform the observation and experiments himself. Others did and confirmed his theories.
Some flat-Earthers dismiss Einstein’s theories —especially those about gravity— on the basis that they are founded on thought experiments and daydreaming. They are wrong. His theories have been repeatedly confirmed by various experiments and observation performed by many others, even to this day.