Usually when we train I often say you have to be physical and we use tools to simulate contact but honestly, the best way to learn is to copy what the best are doing. Basketball is a contact sport and you cannot avoid it.
Being able to finish at the rim through contact is an underrated skill but if you can do it consistently, you become a huge threat to the defense. So here's a video showing you how to finish through contact.