The Flash takes his past self to a lab to get his powers, so that he'd also have them in the future. The scene illustrates him going through the door to the building by breaking down his atoms, weaving through the door's atoms, and putting his molecules back together to form himself.