Doctors could use the technique to diagnose brain areas damaged by a stroke or dementia , determine the outcome of drug treatment or stem-cell therapy and fling open a door into the strange world of dreams .