I could've sworn just like two weeks ago. I did a project where all I had to do was create a shape with the pen tool right click and then select fill path and if I filled it with black or white, it would do what I wanted it to do
By @danielb94023111
OK. That's a little different, where the Pen tool is used to draw a path that is then converted to a pixel selection (the animated marquee).
The window frame was created in the picture when I took the picture.
By @danielb94023111
If you just want to color the window frame, then:
1. Start from the path you drew in your screen shot, that has the inner and outer shapes. Make sure that is selected in the Paths panel.
2. Choose Layer > New Fill Layer > Solid Color (or whatever fill you wanted such as Gradient).
3. Set the fill color you want. The path that was selected becomes a vector mask for the new Solid Color Fill layer.
4. Use a path selection tool to select the inner path, then click the Path Operations button, choose Subtract Front Shape, and that will put a hole in the Color Fill layer.

You could also do it the way you did before, which is to convert the path to a pixel selection and then fill that. I find that harder to edit and it would take more steps to do, but if you understand pixel selections/masks better than path/vector masks, maybe doing the extra steps to work with it as a pixel selection/mask might be worth it.
It is important to know that when you work with a vector shape layer or a Solid Color Fill layer, the way you edit the fill is definitely different than if you work with a pixel selection where you would use the Edit > Fill command. Yes, it’s confusing.