I cannot confirm its original use, but the construction, rear mounting points and internal fittings suggest that it was designed as an electric wall-mounted lantern rather than simply as a decorative piece.
Vintage Brass Railway Style Wall Lantern Clear Glass Industrial Light
Vintage Brass Railway Oil Lantern Made in England Glass Panel Hurricane Lamp (?)
Vintage Brass Railway Whistle – SONDIC – Made in India – 5cm – Industrial
Vintage Brass Railway Sign Clan Line Merchant Navy Class
Vintage Brushed Brass Finish Table Lamp - Orient Express Railway Style Working
Vintage Brass Plate Marine-Style Lantern Candle Holder Made in Hong Kong