If we expand your original sentence to 'I saw that my old shirt, hanging on a nail, was crying,' then we can analyze it more clearly:
'Hanging on a nail' is a nonfinite clause, and can be represented by 'I saw that my old shirt, which was hanging on a nail, was crying.' This is a nonrestrictive clause modifying 'shirt'. (Your 'that'-clause is a restrictive one.)