If you have 2-3 hours to spend in Corfe Castle, there are a few things you could consider doing:
1. Visit Corfe Castle: This is the main attraction in the town and is a stunning ruined castle. You could spend at least an hour exploring the castle and learning about its history.
2. Walk around the town: Corfe Castle has some lovely shops, cafes and pubs to explore. You could spend some time wandering around and soaking up the charming atmosphere.
3. Take a steam train ride: The Swanage Railway runs through Corfe Castle and you could take a ride on the steam train to Swanage. This would take approximately an hour.
4. Visit the Model Village: The Corfe Castle Model Village is a 1/20th scale model of the town and castle. It's a great place to visit if you're short on time as you can see all the highlights quickly. This would take around 30 minutes.
Overall, you could easily do a combination of these activities in 2-3 hours and get a good taste of Corfe Castle.