I do that but never overnight (my violin has to sleep in its case next to my bed

). But i usually pick my violin up several times throughout the day so i sometimes do that - leaving it in an open case. Though once my dad got angry that it was 'in the way' (i'd left it on a chair as they were out but had just arrived home) and he purposely slammed the lid of my case down on my 120 year old violin
Aside from that it's fine

I don't leave it out for too long though - if i'm not gonna be playing for over like 2 hours it'll go back in its case
It's probably best to put it back in its case overnight but it's ok to leave it out in the day - aslong as there's no-one around to knock it and it's in a safe place, and be careful it's not too hot etc. too