Theresa Rebeck's latest takes a page from two dramas: "Hamlet" and the woman who first dared to play him.