Greta Lee built her reputation playing charismatic outsiders in other people’s stories. Now, she’s writing her own.