You would be better off clearing in at a common port of entry and then
anchoring. In theory entering and stayin territorial waters is not considered innocent
passage and hence you should clear in.
However in my experience, if you just
anchor there for 2 weeks ( you mean never to come ashore). The authorities proably will not bother you.
Dave