Hi, that's a good question.
Are you going to work on a plugin, a theme or the WordPress core in general?
In short, you can create any docker with WordPress and map the wordpress folder to a local folder. Then with PHP Tool, create a project in this local folder, go to project properties and setup "Custom Web Server" (instead of a built-in web server).