I occasionally do what the person on the right does (With flight socks) to stretch out for 10 mins or so and when the cabin lights are off. I hope that is not frowned upon
Someone will definitely frown upon it. You should sit upright with your shoes on for the whole flight.