(Someone's knocking on the door)
A: Who is it?
B: It's I U The complement of the verb to be as expressed by a pronoun should be in the nominative form. It’s I who is knocking on the door.
Why is I correct? I would have answered It's me instead. Informal.