Franz Xaver Kroetz, Dramatiker