How should a lengthy unrelated visit after using the toilet be evaluated?

Bab al-Iʿtikaf: Rules, Restrictions, Invalidation and Vows