For novelists, filmmakers, and writers of popular history, Shanghai in the years between the two world wars is irresistible.