"There was spiritual weakness in Lot (Gen. 19:6), e.g., immorality (Gen. 19:8) and drunkenness (Gen. 19:33–35). His heart was in Sodom (Gen. 19:16), yet he did hate the sins of his culture and strongly sought ways to protect God’s angels from harm. He obeyed the Lord in not looking back at Sodom (Gen. 19). In both of the illustrations where God rendered a wholesale judgment on all living people (once on the whole earth, and once in the whole region of the plain S of the Dead Sea), Peter pointed out that God’s people were rescued (v. 5; cf. v. 9). The Gr. word for “oppressed” implies that Lot was troubled deeply and tortured (the meaning of “tormented”) with the immoral, outrageous behavior of the people living in and around Sodom and Gomorrah. Tragically, it is ordinary for believers today no longer to be shocked by the rampant sin in their society."
The "righteous" position or standing of Lot can only be explained as being an imputed righteousness, since his character is never exemplified as righteous in Scripture. The exception would be in the smaller detail of reproving the mob in Genesis 19. 2 Peter 2:7-8 can be used as a supporting passage for the doctrine of imputed righteousness. He had the same righteousness as Abraham which comes by faith (Genesis 15:6).