Questions:
1-Is the window period for sharing needle and unprotected sex same?
YES, it is the same. Any information you read that says it is not is either 1) wrong, or 2) very outdated.
Test any time 90 days or more after your event for a conclusive result. There is NOTHING more to say.