Flood fill for Tile Map object

I’m not talking about that “fill whole layer with tile” we have now, which is frankly useless, but a regular flood fill, like in e.g. Paint. It would be simple as well - just research flood fill algorithm and instead of filling with pixels, you fill with tiles.