If you need to enter a driveway to park, it is a good idea to:

If it is necessary to park in a driveway, you should enter the driveway by backing into the space. This way, when leaving the driveway, you can pull forward and clearly see where you are going.
DMV Writen Test