Microsoft has had this in their Surface Book. It has a screen that could detach and be used as a table, which had an accelerometer in it that could measure the angle.