Catalysis of the reaction: UDP-N-acetyl-D-glucosamine + protein = UDP + 4-N-(N-acetyl-D-glucosaminyl)-protein.
uridine diphospho-N-acetylglucosamine:polypeptide beta-N-acetylglucosaminyltransferase activity