Ms. Lee is the first African-American director at Twitter, which been criticized for a lack of representation of varied ethnic groups.