Put a wood beam across the back at the level you want the ledge. This is for structural support of the ledge. Then just screw the ledge into the wood beam. (through the foam)
As for the ledge itself there are lots of options depending on what exactly you are looking for.
Here is one example:
If you tell us what you want exactly we can probably help more.










Reply With Quote