The New York attorney general who prosecuted Donald Trump makes her first court appearance in a case in which she is accused of mortgage fraud.