Can one get genital warts or HPV with little contact of a penis barely touching the anus area? Not near either entrance of the anal or vagina?

Yes possible. But most of the time need repeated body contact to get infected , young females should have vaccination ( even men ) to prevent future genital cancer, .