This effect was generated in Filter Forge, a Photoshop plugin that allows you to create your own filters.
This filter makes window frames, both with and without an imported image as the background.
This filter works best with square sizes, but, I was able to make it work somewhat with non-square sizes. However, there are limitations with non-square. The bars may not line up proportionally within the frame when using the repeats. Hopefully, a later version of Filter Forge will correct this.
Craig Kraellin Walters frame stile bars square non-square window background image wood