I did this using a property you can add under TileMapLayer > Tile Set > Rendering > Occlusion Layers
This tutorial was really helpful to me back then. I hope you find it useful.
thank you very much