The Episcopal Church can find itself in this mess because, among other things, it starts to believe its own liberal nonsense regarding homosexuality. See below from an excerpt from the Episcopal Church’s response/defense to the Anglican Communion’s Windsor Report regarding the ordination of an actively homosexual bishop and same-sex marriage:
[2.0] For almost forty years, members of the Episcopal Church
have discerned holiness in same-sex relationships and,
have come to support the blessing of such unions and the
ordination or consecration of persons in those unions.
Christian congregations have sought to celebrate and bless
same-sex unions because these exclusive, life-long, unions
of fidelity and care for each other have been experienced
as holy. These unions have evidenced the fruit of the
Holy Spirit: “joy, peace, patience, kindness, generosity,
faithfulness, gentleness, and self-control” (Galatians 5:22-
23). More specifically, members of our congregations have
seen the fruit of such unions as sanctifying human lives by
deepening mutual love and by drawing persons together in
fidelity and in service to the world….
Some members of our Church have, over many years, experienced
these manifest gifts of holiness and authentic desire to live
the Gospel life among our fellow members of same-sex
affection. We believe that God has been opening our eyes to
acts of God that we had not known how to see before….
[2.2] In this, we find ourselves in the same position as Peter
and his companions in Acts 10, who, initially hesitant to
welcome righteous Gentiles like Cornelius into their church,
discovered that God had already welcomed them (Romans
14:3) and poured out the gifts of the Holy Spirit upon them.
So we have been holding our circumstances, especially
these signs of holiness where we had not known to seek
holiness, before the Lord. We have been asking God to help
us find our way by showing us the way of God’s people.
Holy Scripture, specifically the account of the inclusion of
the Gentiles (Acts 10-15), has allowed us to interpret our
experience in the light of the early Church’s experience….
episcopalchurch.org/documents/ToSetOurHopeOnChrist.pdf