how to unwrap this simple window frame?
The issue with your unwrap isn't the seam placement, it's that you didn't uncheck Fill Holes in the unwrap dialog.
This is probably way overkill, but here is the layout I came up with that uses the least amount of visible seams as possible:
Top:

Bottom:

The layout: